﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Araman.Models.FilesAndPaths
{
    using Araman.Models;
    using System.Web.Mvc;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using Araman.Resources;
    public class MainStorage
    {
        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int StorageId { get; set; }

        [RegularExpression(@"A-Za-z0-9_\- ]{1,32}")]
        [MaxLength(32)]
        [Required(AllowEmptyStrings = false)]
        public string StorageName { get; set; }                
        
        [Required(AllowEmptyStrings=false)]
        [MaxLength(1024)]
        [MinLength(1)]
        public string PhysicalRootPath { get; set; }
       
        public virtual IEnumerable<StorageDirectory> Directories { get; set; }
    }
}